/**
 * Created by gemini on 2017/4/24.
 */
myApp.factory('venueService',function ($http) {
    function venueList(company_id,page,rows,result) {
        return $http({
            method:"post",
            url:"http://dev.bestgym.cn/api/v1/venue/venue/list",
            data:{
                company_id:company_id,
                page:page,
                rows:rows
            }
        }).success(function (data) {
            result(data)
        }).error(function (data) {
            alert("失败！")
        });
    }

    return {
        venueList: function (company_id, page, rows, result) {
            return venueList(company_id, page, rows, result)
        }
    }
});